package com.chixing.ih.module.task.service;


import com.chixing.ih.module.task.pojo.Comment;
import com.chixing.ih.module.task.pojo.DTO.MongoDBCommentDTO;

import java.util.List;

/**
 * 目的:
 *
 * @author ：zcw
 * @version: 1.0  2020/10/3 22:00
 */
public interface ICommentService {

    List<Comment> findAll();

    List<MongoDBCommentDTO> findByCommentParentId(Long commentParentId);

    Integer saveComment(Comment comment);

    void updateById(Comment comment);

    void deleteByCommentId(Long commentId);

    List<MongoDBCommentDTO> findByTaskIdAndCommentParentId(Long taskId);

    void thumbUp(Long commentId);

}
